package cn.glc.daily.life.infrastructure.repository.mysql;

import cn.glc.daily.life.infrastructure.dao.RolePermissionDao;
import cn.glc.daily.life.infrastructure.po.RolePermissionPo;
import cn.glc.daily.life.model.to.RolePermissionTo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

/**
 * 角色-权限
 *
 * @author simon
 * @date 2020/11/9 9:55
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@Repository
public class RolePermissionRepository extends ServiceImpl<RolePermissionDao, RolePermissionPo> implements IService<RolePermissionPo> {

    public RolePermissionTo findAllByRoleId(String roleId) {
        return super.baseMapper.findAllByRoleId(roleId);
    }
}
